﻿using System;
using System.Collections.Generic;

namespace TuxedoLib
{
	public class PressedKeysLookup
	{
		private Dictionary<Key, bool> pressedKeys;

		internal PressedKeysLookup()
		{
			this.pressedKeys = new Dictionary<Key, bool>();
			foreach (Key key in Enum.GetValues(typeof(Key)))
			{
				this.pressedKeys[key] = false;
			}
		}

		public bool this[Key key]
		{
			get
			{
				return this.pressedKeys[key];
			}
			internal set
			{
				this.pressedKeys[key] = value;
			}
		}
	}
}
